tmem: Fix domain lifecycle synchronisation.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 10 Jun 2010 21:39:52 +0000 (22:39 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 10 Jun 2010 21:39:52 +0000 (22:39 +0100)
commit425bbceb733bfae83b6e4055b8db2ebcc497fb16
tree47e71ec517cfbdd8b83f39ee312fc11b864e7de2
parentc9b5c0a4b070dbe8e43d4b37309cde052a6e249a
tmem: Fix domain lifecycle synchronisation.

Obtaining a domain reference count is neither necessary nor
sufficient. Instead we simply check whether a domain is already dying
when it first becomes a client of tmem. If it is not then we will
correctly clean up later via tmem_destroy() called from domain_kill().

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h